package cn.jindong.mall.product.fallback;

import cn.jindong.common.exception.BizCodeEnume;
import cn.jindong.common.utils.R;
import cn.jindong.mall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author LYX
 * @data 2022/4/8 11:03
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckilInfo(Long skuId) {
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(),BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}